home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Converting Strings to Upper Case
- Date: Sun, 17 Mar 96 18:37:23 GMT
- Organization: none
- Message-ID: <827087843snz@genesis.demon.co.uk>
- References: <4ifra6$52i@scipio.cyberstore.ca>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4ifra6$52i@scipio.cyberstore.ca> ejw@news.cyberstore.ca "
- " writes:
-
- >Hi,
- >
- >I need to write a function to convert a string containg upper or lower case
- >characters to the opposite case. Something like:
- >
- > void libConvertUpperCase(char *str); and
- > void libConvertLowerCase(char *str);
- >
- >and the string would be modified. I just can't seem to wrap my head around
- >the best way that I know is better than writing a for loop to check each
- >element in the array?
-
- That sentence doesn't parse. The best way that I know is to write a for loop
- and check each character in the string - any method will ultimately boil
- down to this. If you think you know of a better method perhaps you
- could explain?
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-